﻿// test_10.16(2).cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <stdio.h>
int Add(int a, int b)
{
    int z = a + b;
    return z;
}
int main()
{
    printf("hello bit\n");
    printf("he he\n");
    int num1 = 0;
    int num2 = 0;
    int sum = 0;
    printf("输入两个操作数：>");
    scanf_s("%d %d", &num1, &num2);
    sum = num1 + num2;
    printf("sum=%d\n", sum);
    enum Sex//枚举用enum，枚举常量的默认时从0开始，依次向下递增1
    {
         MALE,
         FEMALE,
         SECRET
    };
    printf("%d\n", MALE);
    printf("%d\n", FEMALE);
    printf("%d\n", SECRET);
    //return 0;
    printf("加入比特\n");
    int line = 0;
    while (line<=20000)
    {
        printf("我要好好写代码\n");
        line++;


    }
    if (line > 20000)
        printf("拿到好offer\n");
    //return 0;
    int m, n;
    m = 15;
    n = 38;
    printf("m+n=%d", Add(n, m));
    int input = 0;
    printf("加入比特，你要好好学习吗？=>(1/0)\n");
    scanf_s("%d", &input);
    if (input == 1)
        printf("好offer\n");
    else if (input == 0)
        printf("寄");
    else
        printf("输入错误\n");
    //return 0;
    int i = 0;
    int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
    for (i = 0;i < 10;i++)
    {
        printf("%d",arr[i]);
    }


}


